package com.ssi.service.goods.impl;

import java.util.List;
import java.util.Map;

import com.ssi.dao.good.GoodsDao;
import com.ssi.domain.goods.Goods;
import com.ssi.service.goods.GoodsService;

/**
 * GoodsServiceImpl
 * 
 * @author : 
 * @version :
 */
public class GoodsServiceImpl implements GoodsService {

	private GoodsDao goodsDao;

	public GoodsDao getGoodsDao() {
		return goodsDao;
	}
	public void setGoodsDao(GoodsDao goodsDao) {
		this.goodsDao = goodsDao;
	}

	/* 
	 * 
	 */
	public void addGoods(Goods goods) {
		goodsDao.insertGoods(goods);
	}

	/* 
	 * 
	 */
	public void updateGoods(Goods goods) {
		goodsDao.updateGoods(goods);
	}
	/* 
	 *
	 */
	public void deleteGoods(int goodsId) {
		goodsDao.deleteGoods(goodsId);
	}

	/* 
	 * 
	 */
	public Goods queryGoodsById(int goodsId) {
		return goodsDao.queryGoodsById(goodsId);
	}
	public List<Goods> queryGoodsByIds(Map<String, Object> map) {
		return goodsDao.queryGoodsByIds(map);
	}
	public List<Goods> queryGoodsByGoodstypeId(Map<String, Object> map) {
		return goodsDao.queryGoodsByGoodstypeId(map);
	}

	public List<Goods> queryGoodsByName(Map<String, Object> map) {
		return goodsDao.queryGoodsByName(map);
	}
	public List<Goods> queryGoods(Map<String, Object> map) {
		return goodsDao.queryGoods(map);
	}
	public List<Goods> queryMoreGoods(Map<String, Object> map) {
		return goodsDao.queryMoreGoods(map);
	}
	public List<Goods> queryGoodsByShopId(int id) {
		return goodsDao.queryGoodsByShopId(id);
	}
	



}
